const table = require('../dao/tableDao')
const db = require('../DBcofig/DBConnection')
module.exports = {
    async setTable(req, res) {
        let { page, limit, serch } = req.query
        let sql = 'select * from r_table'
        let arr = []


        // db.dbconfig(res,sql,arr,function(data){
        //     console.log(data);

        // })
        let data = await table.setTable(res, sql, arr)
        res.send(data)

    }
}